<div class="row">
<div class="panel">RESET STUDENT/S PASSWORD</div>
<?=$system_message;?>
<div class="alert-box secondary">
	<div class="row collapse">
		<div class="large-3 small-3 columns">
			<span class="prefix"><strong>Search Student:</strong></span>
		</div>
		<form action="" method="POST">
		<div class="large-6 small-6 columns">
			<input id="student_enrollment_id" class="searchInput" required autocomplete="off" placeholder="To search student, enter Student Name OR ID Number." url="<?=site_url('output/ajax_search_officially_enrolled');?>" type="text" name="student_search_data" autofocus>
		</div>
		<div class="large-3 small-3 columns">
			<input type="submit" name="search" class="button postfix" value="Search">
		</div>
		</form>
	</div>
	<div style="margin-top:1px;margin-bottom:1px;" class="pagination  pagination-mini  pagination-centered">
		<ul>
		<?foreach($a_z as $v):?>
			<li><a href="<?=site_url('registrar/reset_student_password/'.$v);?>"  class="<?=$active==$v?'btn btn-inverse btn-mini':'';?>">
				<strong><?=strtoupper($v);?></strong></a>
			</li>
		<?endforeach;?>
		</ul>
	</div>
	<hr>
	<span class="label label-inverse" style="font:17px bold;display:inline-block;">Current Enrollee Total: <strong>(<?=$total;?>)</strong></span>
	<a href="<?=site_url('registrar/process_reset_student_password/LAHAT')?>" class="btn btn-small btn-primary confirm" title="Warning! This action will reset ALL officially enrolled students password. Do you want to continue?" ><i class="fa fa-refresh"></i>&nbsp; Reset All Students Password</a>
	<?=$links;?>
</div>
</div>

<div class="row">
	<?if(!empty($students)):?>
		<table class="table table-striped table-hover">
		<thead>
		<tr>
			<th>IDNO</th>
			<th>Student Name</th>
			<th>Grade Level</th>
			<th>Block</th>
			<th>Section</th>
			<th>&nbsp;</th>
		</tr>
		</thead>
		<tbody>
		<?foreach($students as $k => $student):?>
			<tr>
				<td><?=$student->idno?></td>
				<td><?=ucwords(strtolower($student->fullname));?></td>
				<td><?=ucwords($student->level_desc);?></td>
				<td><?=@$student->block_name;?></td>
				<td><?=@$student->section_name;?></td>
				<td>
					<a href="<?=site_url('registrar/process_reset_student_password/'.$student->enrollment_id)?>" class="btn btn-small btn-inverse confirm" title="Reset student password to it's student ID number. Do you want to continue?"><i class="fa fa-refresh"></i>&nbsp; Reset</a>
				</td>
			</tr>
		<?endforeach;?>
		</tbody>
		</table>
	<?else:?>
		<div class="alert-box">
			<i class="icon-exclamation-sign icon-white"></i> Nothing found!
		</div>
	<?endif;?>
	<?=$links;?>
</div>
<script type="text/javascript" src="<?=script_url('custom/fsearch_2');?>"></script>